package android.Dominion;

import java.util.List;

import android.Dominion.Graph.GraphManager;
import android.Dominion.Graph.GraphNode;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class Dominion extends Activity
{
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		DoStuff();
	}

	private void DoStuff()
	{
		GraphManager gm = new GraphManager();
		// GraphNode node0 = new GraphNode();
		GraphNode node1 = new GraphNode();
		GraphNode node2 = new GraphNode();
		GraphNode node3 = new GraphNode();
		GraphNode node4 = new GraphNode();
		GraphNode node5 = new GraphNode();
		GraphNode node6 = new GraphNode();
		GraphNode node7 = new GraphNode();
		GraphNode node8 = new GraphNode();
		GraphNode node9 = new GraphNode();

		// node0.setId(0);
		node1.setId(1);
		node2.setId(2);
		node3.setId(3);
		node4.setId(4);
		node5.setId(5);
		node6.setId(6);
		node7.setId(7);
		node8.setId(8);
		node9.setId(9);

		// node0.getChildren().add(node1);
		node1.AddChild(node2);
		node1.AddChild(node9);
		node2.AddChild(node3);
		node2.AddChild(node5);
		node2.AddChild(node7);
		node3.AddChild(node4);
		node5.AddChild(node6);
		node7.AddChild(node8);

		GraphNode currNode = gm.getCurrentNode();
		currNode.AddChild(node1);

		// gm.getCurrentNode().getChildren().add(node1);

		GraphNode curr = gm.GetNextNode();
		while (curr != null)
		{
			// System.out.println(curr.getId());
			Log.println(Log.DEBUG, "Test", "current Node id is = " + curr.getId());
			curr.setBeenProcessed(true);
			curr = gm.GetNextNode();

		}

	}
}